package com.chongqing.shiro.service;

import com.chongqing.shiro.model.entity.Permission;

import java.util.List;
import java.util.Set;

public interface PermissionService {

    List<Permission> selectAll(Integer status);

    List<Permission> selectMenusByUserId(String userId);

    Set<String> findPermsByUserId(String userId);

    List<Permission> selectAllMenuName(Integer statusValid);

    int insert(Permission permission);

    Permission findByPermissionId(String permissionId);

    Permission findById(Integer parentId);

    int updateByPermissionId(Permission permission);

    int selectSubPermsByPermissionId(String permissionId);

    int updateStatus(String permissionId, Integer status);
}
